<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (Mac OS): MacOnly/CPTPlatformSpecificFunctions.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (Mac OS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_p_t_platform_specific_functions_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">MacOnly/CPTPlatformSpecificFunctions.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_c_p_t_platform_specific_functions_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_definitions_8h.html">CPTDefinitions.h</a>&quot;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#import &lt;Foundation/Foundation.h&gt;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#import &lt;QuartzCore/QuartzCore.h&gt;</span>
<a name="l00004"></a>00004 
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="preprocessor">#if __cplusplus</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00009"></a>00009 <span class="preprocessor">#endif</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00013"></a>00013 <span class="keywordtype">void</span> <a class="code" href="_c_p_t_platform_specific_functions_8h.html#a749370a9ff558a64e0c8e335d8788dac" title="Pushes the current AppKit graphics context onto a stack and replaces it with the given Core Graphics ...">CPTPushCGContext</a>(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a> context);
<a name="l00014"></a>00014 <span class="keywordtype">void</span> <a class="code" href="_c_p_t_platform_specific_functions_8h.html#af83544397fc336d1c14e66f2b7e473be" title="Pops the top context off the stack and restores it to the AppKit graphics context.">CPTPopCGContext</a>(<span class="keywordtype">void</span>);
<a name="l00015"></a>00015 
<a name="l00017"></a>00017 
<a name="l00020"></a>00020 <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a> <a class="code" href="_c_p_t_platform_specific_functions_8h.html#a3be5490002256d9807df1586581550b9" title="Get the default graphics context.">CPTGetCurrentContext</a>(<span class="keywordtype">void</span>);
<a name="l00021"></a>00021 
<a name="l00023"></a>00023 
<a name="l00026"></a>00026 <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGColor/Reference/reference.html#//apple_ref/doc/c_ref/CGColorRef.html">CGColorRef</a> <a class="code" href="_c_p_t_platform_specific_functions_8h.html#a3580904e417acab705123a9d25c03a8c" title="Creates a CGColorRef from an NSColor.">CPTCreateCGColorFromNSColor</a>(<a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/Reference/Reference.html">NSColor</a> *<a class="code" href="interface_c_p_t_color.html#ab17b4b208316a1f55f8be4896a8b04e9" title="Gets the color value as an NSColor.">nsColor</a>);
<a name="l00027"></a>00027 <a class="code" href="struct___c_p_t_r_g_b_a_color.html" title="RGBA color for gradients.">CPTRGBAColor</a> <a class="code" href="_c_p_t_platform_specific_functions_8h.html#aa788843028b5cdba8df9b77d759d286f" title="Creates a CPTRGBAColor from an NSColor.">CPTRGBAColorFromNSColor</a>(<a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/Reference/Reference.html">NSColor</a> *<a class="code" href="interface_c_p_t_color.html#ab17b4b208316a1f55f8be4896a8b04e9" title="Gets the color value as an NSColor.">nsColor</a>);
<a name="l00028"></a>00028 
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#if __cplusplus</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>}
<a name="l00033"></a>00033 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_c_p_t_platform_specific_functions_8h.html">CPTPlatformSpecificFunctions.h</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
